package com.xcx.bo;

import java.io.Serializable;
import java.util.Date;

/**
 * douyin_unlock
 * @author 
 */
public class DouyinUnlock implements Serializable {
    /**
     * 分享表解锁id
     */
    private String unlockId;

    /**
     * 用户编号
     */
    private String userNo;

    /**
     * 分享群返回的ticket  json格式
     */
    private String shareTicket;

    /**
     * 分享点击次数
     */
    private Integer onLoad;

    /**
     * 是否解锁  已解锁 - 1  未解锁 -0
     */
    private String isUnlock;

    /**
     * 当前最大已解锁数
     */
    private Integer nowMaxLook;

    /**
     * 最大解锁数
     */
    private Integer maxUnlock;

    /**
     * 解锁时间
     */
    private Date unlockTime;

    /**
     * 扩展信息
     */
    private String extInfo;

    /**
     * 创建时间
     */
    private Date createdDate;

    /**
     * 修改时间
     */
    private Date updatedDate;

    private static final long serialVersionUID = 1L;

    public String getUnlockId() {
        return unlockId;
    }

    public void setUnlockId(String unlockId) {
        this.unlockId = unlockId;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getShareTicket() {
        return shareTicket;
    }

    public void setShareTicket(String shareTicket) {
        this.shareTicket = shareTicket;
    }

    public Integer getOnLoad() {
        return onLoad;
    }

    public void setOnLoad(Integer onLoad) {
        this.onLoad = onLoad;
    }

    public String getIsUnlock() {
        return isUnlock;
    }

    public void setIsUnlock(String isUnlock) {
        this.isUnlock = isUnlock;
    }

    public Integer getNowMaxLook() {
        return nowMaxLook;
    }

    public void setNowMaxLook(Integer nowMaxLook) {
        this.nowMaxLook = nowMaxLook;
    }

    public Integer getMaxUnlock() {
        return maxUnlock;
    }

    public void setMaxUnlock(Integer maxUnlock) {
        this.maxUnlock = maxUnlock;
    }

    public Date getUnlockTime() {
        return unlockTime;
    }

    public void setUnlockTime(Date unlockTime) {
        this.unlockTime = unlockTime;
    }

    public String getExtInfo() {
        return extInfo;
    }

    public void setExtInfo(String extInfo) {
        this.extInfo = extInfo;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DouyinUnlock other = (DouyinUnlock) that;
        return (this.getUnlockId() == null ? other.getUnlockId() == null : this.getUnlockId().equals(other.getUnlockId()))
            && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
            && (this.getShareTicket() == null ? other.getShareTicket() == null : this.getShareTicket().equals(other.getShareTicket()))
            && (this.getOnLoad() == null ? other.getOnLoad() == null : this.getOnLoad().equals(other.getOnLoad()))
            && (this.getIsUnlock() == null ? other.getIsUnlock() == null : this.getIsUnlock().equals(other.getIsUnlock()))
            && (this.getNowMaxLook() == null ? other.getNowMaxLook() == null : this.getNowMaxLook().equals(other.getNowMaxLook()))
            && (this.getMaxUnlock() == null ? other.getMaxUnlock() == null : this.getMaxUnlock().equals(other.getMaxUnlock()))
            && (this.getUnlockTime() == null ? other.getUnlockTime() == null : this.getUnlockTime().equals(other.getUnlockTime()))
            && (this.getExtInfo() == null ? other.getExtInfo() == null : this.getExtInfo().equals(other.getExtInfo()))
            && (this.getCreatedDate() == null ? other.getCreatedDate() == null : this.getCreatedDate().equals(other.getCreatedDate()))
            && (this.getUpdatedDate() == null ? other.getUpdatedDate() == null : this.getUpdatedDate().equals(other.getUpdatedDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUnlockId() == null) ? 0 : getUnlockId().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getShareTicket() == null) ? 0 : getShareTicket().hashCode());
        result = prime * result + ((getOnLoad() == null) ? 0 : getOnLoad().hashCode());
        result = prime * result + ((getIsUnlock() == null) ? 0 : getIsUnlock().hashCode());
        result = prime * result + ((getNowMaxLook() == null) ? 0 : getNowMaxLook().hashCode());
        result = prime * result + ((getMaxUnlock() == null) ? 0 : getMaxUnlock().hashCode());
        result = prime * result + ((getUnlockTime() == null) ? 0 : getUnlockTime().hashCode());
        result = prime * result + ((getExtInfo() == null) ? 0 : getExtInfo().hashCode());
        result = prime * result + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode());
        result = prime * result + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", unlockId=").append(unlockId);
        sb.append(", userNo=").append(userNo);
        sb.append(", shareTicket=").append(shareTicket);
        sb.append(", onLoad=").append(onLoad);
        sb.append(", isUnlock=").append(isUnlock);
        sb.append(", nowMaxLook=").append(nowMaxLook);
        sb.append(", maxUnlock=").append(maxUnlock);
        sb.append(", unlockTime=").append(unlockTime);
        sb.append(", extInfo=").append(extInfo);
        sb.append(", createdDate=").append(createdDate);
        sb.append(", updatedDate=").append(updatedDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}